package com.canbot.u05.activity.meeting;

/**
 * 呼叫召集界面
 */

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;

import com.canbot.u05.R;
import com.canbot.u05.activity.BaseActivityNoTitle;
import com.canbot.u05.adapter.meeting.MeetingCallListViewAdapter;
import com.canbot.u05.bean.meeting.Linkman;

import java.util.ArrayList;
import java.util.List;

public class MeetingCallActivity extends BaseActivityNoTitle {

        private ImageView back;

        private ListView listView;

        private List<Linkman> dList = new ArrayList<Linkman>();

        private MeetingCallListViewAdapter list_ada;

        @Override
        protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.activity_meeting_call);
                initView();
                initDate();
                list_ada = new MeetingCallListViewAdapter(this, dList);
                listView.setAdapter(list_ada);
        }

        private void initDate() {
                for (int i = 0; i < 30; i++) {
                        Linkman linkman = new Linkman("优优" + i, null, i + "1111111");
                        dList.add(linkman);
                }
        }

        private void initView() {
                back = (ImageView) findViewById(R.id.meeting_call_back);
                listView = (ListView) findViewById(R.id.meeting_call_listView);
        }

        /**
         * 返回键
         * */
        public void callBack(View view) {
                finish();
        }
}
